const contentEl = document.querySelector(".content");
const txt = contentEl.innerHTML;

const reg = /\s+.+/g;
const newTxt = txt.replace(reg, function (s) {
  s = s.replace(/\s/g, "");
  return `<p>${s}</p>`;
});

contentEl.innerHTML = newTxt;
